Make setting the icon-size property on GTK_IMAGE_GICON images work
authorChristian Persch <chpe@gnome.org>
Mon, 23 Nov 2009 13:33:08 +0000 (14:33 +0100)
committerChristian Persch <chpe@gnome.org>
Mon, 23 Nov 2009 16:03:55 +0000 (17:03 +0100)
Bug #602725.

gtk/gtkimage.c

index 4d802671088c1852c85f8c7ed480efd45afebc94..6c53d30721c695980524766bdef27e39084b788c 100644 (file)
@@ -361,8 +361,12 @@ gtk_image_set_property (GObject      *object,
         gtk_image_set_from_icon_name (image,
                                      image->data.name.icon_name,
                                      g_value_get_int (value));
+      else if (image->storage_type == GTK_IMAGE_GICON)
+        gtk_image_set_from_gicon (image,
+                                  image->data.gicon.icon,
+                                  g_value_get_int (value));
       else
-        /* Save to be used when STOCK or ICON_SET property comes in */
+        /* Save to be used when STOCK, ICON_SET, ICON_NAME or GICON property comes in */
         image->icon_size = g_value_get_int (value);
       break;
     case PROP_PIXEL_SIZE: